<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddTypeToPayConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('pay_configs', function (Blueprint $table) {
            $table->integer('type')->default(0)->comment('类型');
            $table->integer('pic_num')->default(0)->comment('图片单次起卦次数');
            $table->integer('pic_merge_num')->default(0)->comment('图片合图起卦次数');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('pay_configs', function (Blueprint $table) {
            $table->dropColumn(['type',"pic_num","pic_merge_num"]);
        });
    }
}
